#include "link_list.h"
#include "File.h"

// git 测试

Elenemt_data data[10] = 
{
    {.name = "唐三" , .sex = "男" , .age = 18 , .id = 1 , .sco = 60} , 
    {.name = "萧炎" , .sex = "男" , .age = 18 , .id = 2 , .sco = 60} , 
    {.name = "小舞" , .sex = "男" , .age = 18 , .id = 3 , .sco = 60} , 
    {.name = "牧尘" , .sex = "男" , .age = 18 , .id = 4 , .sco = 60} , 
    {.name = "熏儿" , .sex = "男" , .age = 18 , .id = 5 , .sco = 60} ,
    {.name = "张三" , .sex = "男" , .age = 18 , .id = 5 , .sco = 60} ,
};


void link_list_func(void)
{
    // 初始化头节点
    link_list * list_1 = NULL;
    link_list * list_2 = NULL;
    init_link_list(&list_1);
    init_link_list(&list_2);

    /* ******************* 读取 ******************* */

    File_scanf(list_1);
    File_scanf(list_2);

    /* ******************* 合并 ******************* */
    merge_link_list(list_1 , list_2);

    
    /* ******************* 遍历 ******************* */
    print_link_list(list_1);

    /* ******************* 释放 ******************* */
    free_link_list(&list_1);
    free_link_list(&list_2);

}



int main(int argc, char const *argv[])
{
    link_list_func();



    return 0;
}


